package com.chaoyue.content.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author whr
 * @version 1.0
 * @description: 测试freemarker模板引擎
 * @date 2023/5/21 16:52
 */
@Controller
public class FreemarkerController {
    @GetMapping("/testfreemarker")
    public ModelAndView test(){
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.addObject("name","xiaoming");
        modelAndView.setViewName("test");
return modelAndView;
    }

}
